package com.iflytek.cosmo.ocr.dao;

import com.iflytek.cosmo.ocr.model.entity.LicenseEntity;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface LicenseDao extends Mapper<LicenseEntity> {

    /**
     * 批量生成授权码
     *
     * @param macLicenseList
     * @return
     */
    int insertBatch(List<LicenseEntity> licenseList);
    
    /**
     * 批量生成授权码
     *
     * @param macLicenseList
     * @return
     */
    int insertBatchOther(List<LicenseEntity> licenseList);
    
    

    /**
     * 获取有效未被绑定的授权码
     * @return
     */
    List<String> getValidLicenseCode(@Param("state") String state);

    /**
     * 获取有效未被绑定的授权码实体
     * @return
     */
    List<String> getValidLicenseId(@Param("state") String state);
}
